# api配置
DESCRIPTION = "🛢️基于flask的api框架apiflask和layui-vue的前后端分离后台管理系统"

SECRET_KEY = 'SECRET_KEY xxxxxxxxxxxxx'
JWT_SECRET_KEY = 'JWT_SECRET_KEY xxxxxxxxxx'

# 数据库连接
HOST = '127.0.0.1'
PORT = '3306'
DATABASE = 'PearAdminApiFlask'
USERNAME = 'root'
PASSWORD = 'root'

DB_URI = "mysql+pymysql://{username}:{password}@{host}:{port}/{db}?charset=utf8".format(username=USERNAME,
                                                                                        password=PASSWORD, host=HOST,
                                                                                        port=PORT, db=DATABASE)

SQLALCHEMY_DATABASE_URI = DB_URI
SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_ECHO = False
SQLALCHEMY_POOL_RECYCLE = 8
